package com.epoint.mobileoa.bizlogic.mobileoa;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import android.os.Message;
import android.widget.EditText;

import com.epoint.mobileoa.adapter.PersonChooseAdapter;
import com.epoint.mobileoa.bizlogic.SuperView;
import com.epoint.mobileoa.bizlogic.Task;

/**
 * @author liyc
 * @time 2012-2-22 上午2:19:19
 * @annotation 
 */
public class GetPersonChooseAdapterTask extends Task {

	/**
	 * @param con
	 * @param param
	 */
	public GetPersonChooseAdapterTask(SuperView con,
			HashMap<String, Object> param) {
		super(con, param);
	}

	@Override
	public void exectue(Message mess) throws Exception {
		List<Map<String, Object>> mData = (List<Map<String, Object>>)getParam().get("mData");
		List<Map<String,String>> clist = (List<Map<String, String>>) getParam().get("clist");
		List<Map<String,String>> deptslist = (List<Map<String, String>>) getParam().get("deptslist");
		EditText et = (EditText)getParam().get("et");
		PersonChooseAdapter pca = new PersonChooseAdapter(getCon(), mData, clist, deptslist,et);
		setMessageToRefreshUI(mess, getCon(), pca);
	}
}
